//package com.waitingresult;
//
//import com.alibaba.excel.EasyExcel;
//import com.waitingresult.entity.DbEntity;
//import org.springframework.boot.SpringApplication;
//import org.springframework.boot.autoconfigure.SpringBootApplication;
//
//import java.util.List;
//import java.util.Map;
//import java.util.stream.Collectors;
//
///**
// * @Author: WangShuai
// * @CreateTime: 2022-11-23  17:54
// * @Description: TODO
// * @Version: 1.0
// */
////@SpringBootApplication
//public class EasyExcelApplication {
//    public static void main(String[] args) {
////        SpringApplication.run(EasyExcelApplication.class,args);
////        System.out.println("Hello world!");
//        String fileName = "D:\\coding\\my\\mall-cloud\\mysql-init\\ins_db_tbl_col.xlsx";
////        EasyExcel.write(fileName, DbEntity.class, new DbListener()).sheet().doRead();
//        List<DbEntity> cachedDataList = ListUtils.newArrayListWithExpectedSize(1000000);
//        // 这里默认每次会读取100条数据 然后返回过来 直接调用使用数据就行
//        // 具体需要返回多少行可以在`PageReadListener`的构造函数设置
//        EasyExcel.read(fileName, DbEntity.class, new PageReadListener<DbEntity>(cachedDataList::addAll)).sheet().doRead();
//        Map<String, List<DbEntity>> groupingMap = cachedDataList.stream().collect(Collectors.groupingBy(DbEntity::getGroup));
//    }
//}